package com.tuweiya.study.hibernate.compositeKey;

import javax.persistence.*;

@Entity
@Table(name = "animal_table")
public class Animal {

//    @Id
    @EmbeddedId
    @Column(name = "animal_animalPK")
    private AnimalPK animalPK ;

    @Column(name = "animal_info")
    private String info;

    public AnimalPK getAnimalPK() {
        return animalPK;
    }

    public void setAnimalPK(AnimalPK animalPK) {
        this.animalPK = animalPK;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }
}
